package main

import (
	"fmt"
	"os"

	"github.com/louloulin/dataflare/pkg/workflow/cmd"
)

func main() {
	// Check if a file path is provided
	if len(os.Args) < 2 {
		fmt.Println("Usage: go run main.go <workflow-file>")
		os.Exit(1)
	}

	// Get the workflow file path
	filePath := os.Args[1]

	// Run the workflow
	err := cmd.RunWorkflow(filePath, "actor")
	if err != nil {
		fmt.Printf("Error running workflow: %v\n", err)
		os.Exit(1)
	}

	fmt.Println("Workflow completed successfully!")
}
